package kr.hkit.powerjava.chapter24;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class CopyFileReader {
	public static void main(String[] args) throws IOException {
		FileReader fr = null;
		FileWriter fw = null;
		BufferedReader br = null;
		BufferedWriter bw = null;
		
		br = new BufferedReader(new FileReader("input.txt"));
		bw = new BufferedWriter(new FileWriter("output.txt"));
		
		
		
/*		FileReader fis = null;
		FileOutputStream fos = null;
		long start, end;
		try {
			fis = new FileReader("input.txt");
			start = System.currentTimeMillis();
			
			int c;
			while ((c = fis.read()) != -1){
				System.out.format("%s",  (char)c);
			}
			end = System.currentTimeMillis();
			
			System.out.println("걸린 시간 : " + (end-start));
		} catch (FileNotFoundException e){
			System.out.println("파일이 존재하지 않음");
		} catch (IOException e){
			e.printStackTrace();
		} finally {
			if (fis != null) {
				try {
					fis.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			
		}*/
	}
}
